.custom-sm-logo {
    color: white;
    font-weight: 400;
    font-size: 26px;
    padding-top: 10px;
}


.bg-custom-soft-primary {
    background-color: rgba(86, 113, 240, 0.2) !important;
}

.icon-color {
    color: rgb(86, 113, 240);
}

.form-input-container {
    width: '100%' !important;
}

.dashboard-navbar {
    background: #37C1E3;
}

/* Enhanced Topbar Styles */
.enhanced-topbar {
    background: #37C1E3;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border: none;
    box-shadow: none;
}

.enhanced-topbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 24px;
}

.topbar-left {
    display: flex;
    align-items: center;
    margin-left: -60px;
}

.topbar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.topbar-right {
    display: flex;
    align-items: center;
}

/* Logo Section Styling */
.logo-section {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    filter: brightness(0) invert(1);
    margin-left: 20px;
}

.dashboard-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0;
}

/* Remove old menu toggle styles - no longer needed */

/* Action Icons Styling */
.action-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-icon-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.action-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.action-icon-btn i {
    font-size: 18px;
}

.profile-btn {
    text-decoration: none;
}

/* Profile Dropdown Styling */
.profile-dropdown {
    background: white;
    border: 1px solid #e5e8eb;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 200px;
}

.profile-dropdown .dropdown-item {
    padding: 10px 16px;
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-dropdown .dropdown-item:hover {
    background: #f8f9fa;
    color: #495057;
}

.profile-dropdown .dropdown-header {
    padding: 10px 16px;
    border-bottom: 1px solid #e5e8eb;
    margin-bottom: 4px;
}

.profile-dropdown .dropdown-header h6 {
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.language-selector {
    margin-right: 0;
}

.language-dropdown {
    background: none;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 50px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-dropdown:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-dropdown option {
    background: #37C1E3;
    color: white;
    padding: 8px;
}

/* Remove old nav styles - replaced with action icons */

/* Enhanced Sidebar Styles */
.enhanced-sidebar {
    background: #37C1E3;
    border-top: 1px solid white;
    width: 80px;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 999;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Sidebar expands on hover - this is the only way to control it */
.enhanced-sidebar:hover,
.enhanced-sidebar.sidebar-expanded {
    width: 250px;
}

.enhanced-sidebar .h-100 {
    padding: 20px 0;
}

.enhanced-sidebar #sidebar-menu {
    padding: 0;
}

.enhanced-sidebar #side-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.enhanced-sidebar .menu-item {
    color: white;
    margin-bottom: 5px;
    position: relative;
}

.enhanced-sidebar .menu-link {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 10px;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.enhanced-sidebar .menu-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.enhanced-sidebar .menu-link.active {
    background: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
}

.enhanced-sidebar .menu-link.active:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.enhanced-sidebar .menu-icon {
    width: 22px;
    height: 22px;
    margin-right: 15px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
}

.enhanced-sidebar .menu-text {
    color: white;
    white-space: nowrap;
    font-weight: 400;
    font-size: 14px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    max-width: 0;
    overflow: hidden;
}

.enhanced-sidebar:hover .menu-text {
    opacity: 1;
    transform: translateX(0);
    max-width: 180px;
}

.enhanced-sidebar .menu-arrow {
    color: white !important;
    margin-left: auto;
    transition: transform 0.3s ease;
    position: static;
    flex-shrink: 0;
}

.enhanced-sidebar .has-submenu .menu-link[aria-expanded="true"] .menu-arrow {
    transform: rotate(90deg);
}

.enhanced-sidebar .nav-second-level {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin: 5px 10px 5px 0;
    padding: 5px 0;
    list-style: none;
}

.enhanced-sidebar .nav-second-level li a {
    padding: 8px 20px 8px 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    transition: all 0.3s ease;
}

.enhanced-sidebar .nav-second-level li a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.enhanced-sidebar .logout-item {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.enhanced-sidebar .logout-item .menu-link {
    color: rgba(255, 255, 255, 0.6);
}

.enhanced-sidebar .logout-item .menu-link:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

/* Content adjustment for enhanced sidebar */
body.enhanced-layout {
    background-color: #193560;
}

body.enhanced-layout .enhanced-content {
    margin-left: 80px;
    margin-top: 60px;
    padding: 20px;
    min-height: calc(100vh - 60px);
    width: calc(100% - 80px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #193560;
}

/* Content shifts when sidebar is expanded - becomes more flexible */
body.enhanced-layout .enhanced-sidebar:hover ~ .enhanced-content,
body.enhanced-layout .enhanced-content.content-shifted {
    margin-left: 250px;
    width: calc(100% - 250px);
}

/* Ensure proper spacing for charts and content */
body.enhanced-layout .enhanced-content .content {
    padding: 0;
    background-color: #193560;
}

body.enhanced-layout #wrapper {
    background-color: #193560;
}

body.enhanced-layout .content-page {
    background-color: #193560;
}

/* Flexible content container */
body.enhanced-layout .enhanced-content .content {
    max-width: 100%;
    width: 100%;
}

/* Chart containers and widgets should be flexible */
body.enhanced-layout .enhanced-content .chart-container,
body.enhanced-layout .enhanced-content .chart-box,
body.enhanced-layout .enhanced-content .widget {
    max-width: 100%;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Sidebar remains hover-controlled on mobile */
    .enhanced-sidebar {
        width: 80px;
    }
    
    .enhanced-sidebar:hover,
    .enhanced-sidebar.sidebar-expanded {
        width: 250px;
    }
    
    body.enhanced-layout .enhanced-content {
        margin-left: 80px;
        padding: 15px;
        width: calc(100% - 80px);
    }
    
    body.enhanced-layout .enhanced-sidebar:hover ~ .enhanced-content,
    body.enhanced-layout .enhanced-content.content-shifted {
        margin-left: 250px;
        width: calc(100% - 250px);
    }
    
    .enhanced-topbar .container-fluid {
        padding: 0 15px;
    }
    
    .topbar-left {
        gap: 10px;
    }
    
    .language-selector {
        margin-right: 10px;
    }
    
    .enhanced-topbar {
        height: 55px;
    } 
}

.display-hidden {
    display: none;
}

.display-block {
    display: block;
}

.nav-fil-btn {
    cursor: pointer;
}

.nav-fil-btn:hover {
    color: #63e4ec;
}

.bg-logo-img {
    margin-bottom: 2px;
}

.navbar-custom .topnav-menu .nav-link {
    color: rgba(255, 255, 255) !important;
}

.color-jgw-deep-blue {
    color: #193560 !important;
}

.bg-jgw-deep-blue {
    background-color: #193560 !important;
}

.chart-title {
    text-align: center;
    text-transform: capitalize;
    font-size: 18px;
    font-weight: 400;
    color: var(--ct-text-muted)!important;
}

.general-title-text {
    text-transform: capitalize;
    font-size: 18px;
    font-weight: 400;
    color: var(--ct-text-muted)!important;
}

.global-text-style {
    text-transform: capitalize;
}

.generic-chart-box {
    height: 1500px; 
    max-height: 500px; 
    overflow-y: scroll;
}

.inline-questions-chart-box {
    max-height: 150px !important; 
}


.inline-question-container-div {
    border: 1px solid;
    min-height: 270px;
    padding: 16px;
    margin-right: 50px;
    margin-left: 50px;
}

.generic-chart-box::-webkit-scrollbar {
    width: 6px;
}

.generic-chart-box::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

.generic-chart-box::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #aeaeaf; 
}

.generic-chart-box::-webkit-scrollbar-thumb:hover {
    background: #aeaeaf; 
}

.filter-state-container {
    background-color:rgb(230, 245, 250);
}
.filter-state-container span{
    color: #193560;
}

.chart-message {
    text-align: center;
    margin: auto;
}

.scrollable-table-container{
    overflow-y: auto;
    max-height: 500px;
}

.scrollable-table-container::-webkit-scrollbar {
    width: 6px;
}

.scrollable-table-container::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

.scrollable-table-container::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #aeaeaf; 
}

.scrollable-table-container::-webkit-scrollbar-thumb:hover {
    background: #aeaeaf; 
}

#preference_user_trends_caption {
    margin-top: 30px;
    font-weight: 300;
    font-size: 0.8rem;
    color: #6E768E;
    text-align: center;
}

#location-table{
    border-spacing: 30px 0;
    border-collapse: unset;
    overflow-y: auto;
}

#location-table-body{
    display:block;
    height: 300px;
    overflow-y: scroll;
}

#location-table-body >tr> td{
    font-size: 12px;
    color: white;
    padding: 0 10px;
}

#users-map{
    height:500px;
    width: 100%;
}

.location-table-wrapper{
    margin: auto 0;
}

.multiselect-container {
    min-width: 300px;
}

.striped-row {
    background-color: #f3f7f9;
    border-color: #dee2e6;
}

body.modal-open {
    padding-right: 15px !important;
}

.button-margin{
    margin-top: 15px !important;
}

.chart-column-width{
    width: 49% !important;
}

.canvas-chart{
    max-height: 550px;
}
.canvas-user-by-month{
    max-height: 550px;
}

.chart-container{
    display: flex !important;
    flex-wrap: wrap !important;
    row-gap: 20px !important;
    justify-content: space-between !important;
    width: 100% !important;
    overflow-x: auto !important;
    padding-bottom: 1em !important;
    height: 80%;
}

.user-by-month{
    margin-top: 20px;
}
.status{
    padding-left: 30px;
}
.table-title{
    text-align: center;
}
.large-symbol {
    font-size: 1.0rem;
}

@media (max-width: 1200px) {
    .chart-column-width{
        width: 100% !important;
    }
}
 
.chart-title {
    white-space: normal; 
    word-wrap: break-word; 
    overflow-wrap: break-word; 
    max-height: 100px; 
    overflow: hidden; 
    padding-bottom: 10px;
    margin-bottom: 10px;
}
  
  #organisation-work-code-usage-graph-id {
    min-width: 550px !important;
    min-height: 400px;
  }

.resource-link-margin{
    margin-right: 15px
}

.info-tooltip {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #193560;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1050 !important;
    text-align: center;
    width: max-content;
    max-width: 400px;
}

.info-tooltip i {
    margin-right: 8px;
}

.chart:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #193560;
}

.user-route-map-chart-box, .user-geolocation-map-chart-box{
    position: relative;
    left: 10px;
}
.user-route-map, .user-geolocation-map{
    width: 100%;
    height: 800px;
}

.dropdown-menu-messaging-question {
    max-height: 300px;
    overflow-y: auto;
}
.chart-wrapper-messaging-question {
    border: 1px solid #000080;
    padding: 10px;
    border-radius: 5px;
    height: 450px;
    margin-top: 20px;
}
.chart-container-messaging-question {
    height: 200px;
    overflow-x: auto;
    height: 75%;
}
.chart-title-messaging-question {
    font-weight: bold;
    margin-bottom: 10px;
}

.user-route-map-info-tooltip{
    top: -100px;
}

.user-geol-map-info-tooltip{
    top: -40px;
}

.wide-map{
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto; 
}
/* Maintenance page styles */
.maintenance-page-body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f5f5f5;
}

.maintenance-container {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 600px;
}

.maintenance-heading {
    color: #333;
}

.maintenance-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}

.maintenance-message {
    color: #666;
    line-height: 1.6;
}

.maintenance-logo {
    max-width: 200px;
    margin-bottom: 2rem;
}

#user_route_map .modebar-container{
    right: 55px !important;
    top: 65px !important;
}

#user_geolocation_map_user_engagement .modebar-container {
    right: 80px !important;
    top: 2px !important;
}

#user_geolocation_map .modebar-container{
    right: 80px !important; 
    top: -8px !important;
}

.sort-select {
    font-size: 0.8rem;
    padding: 0.25rem;
    height: auto;
    width: 40px !important;
    text-align: center;
}

.sort-select option {
    text-align: center;
    padding: 10px;
}

.sortable-header {
    white-space: nowrap;
    padding: 0.20rem;
}

.sortable-header > div {
    min-width: 75px;
}

/* Chart Card Styles */
.monthly-active-users-card,
.users-by-origin-card,
.users-by-destination-card,
.users-by-gender-card,
.users-by-language-card,
.users-by-state-card,
.users-by-immigration-status-card,
.users-by-age-card,
.work-code-usage-card,
.users-route-map-card,
.users-geolocation-map-card,
.users-interaction-map-card,
.users-by-sector-card,
.inline-question-language-echarts-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;  
}

.monthly-active-users-card .card-body,
.users-by-origin-card .card-body,
.users-by-gender-card .card-body,
.users-by-destination-card .card-body,
.users-by-language-card .card-body,
.users-by-state-card .card-body,
.users-by-immigration-status-card .card-body,
.users-by-age-card .card-body,
.work-code-usage-card .card-body,
.users-by-sector-card .card-body,
.inline-question-language-echarts-card .card-body {
    padding: 24px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.chart-header-left {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chart-main-title {
    font-size: 18px;
    font-weight: 600;
    color: #193560;
    margin: 0 0 8px 0;
}

.chart-metrics {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.metric-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 400;
}

.metric-value {
    font-size: 14px;
    color: #193560;
    font-weight: 700;
}

.chart-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.date-range-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-range-selector:hover {
    background: #e9ecef;
}

.date-range-selector i {
    color: #6c757d;
    font-size: 14px;
}

.date-range-text {
    font-weight: 500;
    color: #495057;
}

.fullscreen-btn {
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fullscreen-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

.fullscreen-btn i {
    font-size: 16px;
}

.chart-type-dropdown-btn {
    padding: 8px 12px;
}

.chart-type-dropdown-btn i {
    font-size: 16px;
}

/* Fullscreen Modal Styles - Centered with White Opacity Background */
.modal-fullscreen-centered {
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    position: fixed;
}

.modal-lg {
    max-width: 1200px;
}

.fullscreen-chart-modal {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.15);
}

.fullscreen-chart-modal .modal-header {
    border-bottom: 1px solid #e5e8eb;
    padding: 20px 24px;
    background: white;
    border-radius: 12px 12px 0 0;
}

.fullscreen-chart-modal .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #193560;
    margin: 0;
}

.fullscreen-chart-modal .modal-body {
    padding: 24px;
    background: white;
    border-radius: 0 0 12px 12px;
}

.fullscreen-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f5f6f8;
    flex-wrap: wrap;
    gap: 16px;
}

.fullscreen-metrics {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.fullscreen-metrics .metric-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fullscreen-metrics .metric-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 400;
}

.fullscreen-metrics .metric-value {
    font-size: 16px;
    color: #193560;
    font-weight: 700;
}

.fullscreen-date-selector {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    background: #f8f9fa;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid rgba(25, 53, 96, 0.08);
}

.fullscreen-date-selector .date-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.fullscreen-date-selector label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.fullscreen-date-selector input[type="date"] {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    background: #fff;
    font-size: 14px;
    color: #193560;
    font-weight: 500;
    transition: all 0.2s ease;
}

.fullscreen-date-selector input[type="date"]:focus {
    border-color: #37C1E3;
    box-shadow: 0 0 0 2px rgba(55, 193, 227, 0.2);
    outline: none;
}

.fullscreen-date-selector .filter-action {
    display: flex;
    align-items: flex-end;
}

.fullscreen-date-selector .filter-action .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 576px) {
    .fullscreen-date-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .fullscreen-date-selector .date-field {
        width: 100%;
    }
}

/* Modal Backdrop with White Opacity */
.modal-backdrop {
    background-color: rgba(255, 255, 255, 0.85) !important;
    opacity: 1 !important;
}

.modal-backdrop.show {
    background-color: rgba(255, 255, 255, 0.85);
}

/* Close button styling */
.fullscreen-chart-modal .btn-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    transition: all 0.2s ease;
}

.fullscreen-chart-modal .btn-close:hover {
    opacity: 1;
    color: #495057;
}

/* User Overview Header Styles */
.user-overview-header-row {
    margin-bottom: 15px;
}

.user-overview-header {
    font-size: 25px;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.user-overview-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.user-overview-actions .btn {
    min-width: 140px;
    padding: 10px 20px;
    font-weight: 500;
    background-color: #193560;
    border: 1px solid white;
    border-radius: 5px;
    color: white;
}

@media (max-width: 768px) {
    .user-overview-header-row {
        margin-bottom: 16px;
        padding: 16px 0;
    }
    
    .user-overview-header {
        font-size: 24px;
    }
    
    .user-overview-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .user-overview-actions .btn {
        width: 100%;
    }
}

/**
 * Dashboard Customization Styles - WPBakery Page Builder Style
 * Professional, polished interface matching application color scheme
 */

/* Application Color Variables */
:root {
    --jgw-primary: #193560;
    --jgw-primary-light: #2a4a7a;
    --jgw-primary-dark: #0f1f3a;
    --jgw-accent: #37C1E3;
    --jgw-accent-light: #5fd1eb;
    --jgw-success: #9dbe3b;
    --jgw-success-light: #b5d85a;
    --jgw-gray: #6c757d;
    --jgw-gray-light: #f8f9fa;
    --jgw-gray-border: #dee2e6;
    --jgw-white: #ffffff;
    --jgw-shadow: rgba(25, 53, 96, 0.15);
    --jgw-shadow-hover: rgba(25, 53, 96, 0.25);
}

/* Main Floating Toolbar - WPBakery Style */
#dashboard-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--jgw-primary) 0%, var(--jgw-primary-light) 100%);
    box-shadow: 0 4px 20px var(--jgw-shadow);
    z-index: 1050;
    padding: 12px 24px;
    display: none;
    align-items: center;
    justify-content: space-between;
    color: var(--jgw-white);
    border-bottom: 2px solid var(--jgw-accent);
    backdrop-filter: blur(10px);
}

#dashboard-toolbar .toolbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}

#dashboard-toolbar .toolbar-brand i {
    font-size: 20px;
    color: var(--jgw-accent);
}

#dashboard-toolbar .toolbar-left,
#dashboard-toolbar .toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--jgw-white);
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    backdrop-filter: blur(5px);
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toolbar-btn:active {
    transform: translateY(0);
}

.toolbar-btn.primary {
    background: var(--jgw-accent);
    border-color: var(--jgw-accent);
    color: var(--jgw-white);
    font-weight: 600;
}

.toolbar-btn.primary:hover {
    background: var(--jgw-accent-light);
    border-color: var(--jgw-accent-light);
    box-shadow: 0 4px 15px rgba(55, 193, 227, 0.4);
}

.toolbar-btn.danger {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
}

.toolbar-btn.danger:hover {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.4);
}

.toolbar-btn i {
    font-size: 16px;
}

.toolbar-btn span {
    display: inline-block;
}

/* Customization Mode Padding */
.dashboard-customize-mode {
    padding-top: 70px;
}

/* Row Styles - WPBakery Style */
.dashboard-customize-mode .dashboard-row {
    position: relative;
    margin-top: 50px;
    margin-bottom: 30px;
    padding: 40px 20px 20px 20px;
    border: 2px dashed var(--jgw-primary);
    border-radius: 10px;
    background: linear-gradient(to bottom, rgba(25, 53, 96, 0.02), rgba(25, 53, 96, 0.05));
    transition: all 0.3s ease;
    min-height: 100px;
}

.dashboard-customize-mode .dashboard-row:hover {
    margin-top: 50px;
    border-color: var(--jgw-accent);
    background: linear-gradient(to bottom, rgba(55, 193, 227, 0.05), rgba(55, 193, 227, 0.1));
    box-shadow: 0 6px 20px var(--jgw-shadow);
    transform: translateY(-2px);
}

.dashboard-customize-mode .dashboard-row.row-selected {
    border-color: var(--jgw-accent);
    border-style: solid;
    background: linear-gradient(to bottom, rgba(55, 193, 227, 0.1), rgba(55, 193, 227, 0.15));
    box-shadow: 0 8px 25px rgba(55, 193, 227, 0.3);
}

/* Row Floating Toolbar - WPBakery Style */
.row-toolbar {
    position: absolute;
    top: -40px;
    left: 0;
    display: none;
    align-items: center;
    gap: 6px;
    background: var(--jgw-primary);
    padding: 8px 12px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -4px 12px var(--jgw-shadow);
    z-index: 100;
    white-space: nowrap;
}

.dashboard-customize-mode .dashboard-row .row-toolbar {
    display: none;
}

.dashboard-customize-mode .dashboard-row:hover .row-toolbar,
.dashboard-customize-mode .dashboard-row.row-selected .row-toolbar {
    display: flex;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.row-toolbar-label {
    color: var(--jgw-white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-right: 10px;
    margin-right: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.row-toolbar-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--jgw-white);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 13px;
}

.row-toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.row-toolbar-btn.drag-handle {
    cursor: move;
}

.row-toolbar-btn.drag-handle:hover {
    background: var(--jgw-accent);
}

/* Chart Styles - WPBakery Style */
.dashboard-customize-mode .dashboard-chart {
    position: relative;
    border: 2px dashed var(--jgw-success);
    border-radius: 12px;
    padding: 15px;
    background: linear-gradient(to bottom, rgba(157, 190, 59, 0.03), rgba(157, 190, 59, 0.08));
    transition: all 0.3s ease;
    min-height: 150px;
}

.dashboard-customize-mode .dashboard-chart:hover {
    border-color: var(--jgw-success-light);
    border-style: solid;
    background: linear-gradient(to bottom, rgba(157, 190, 59, 0.08), rgba(157, 190, 59, 0.12));
    box-shadow: 0 4px 15px rgba(157, 190, 59, 0.2);
    transform: translateY(-2px);
}

.dashboard-customize-mode .dashboard-chart.chart-selected {
    border-color: var(--jgw-success-light);
    border-style: solid;
    background: linear-gradient(to bottom, rgba(157, 190, 59, 0.12), rgba(157, 190, 59, 0.18));
    box-shadow: 0 6px 20px rgba(157, 190, 59, 0.3);
}

/* Chart Floating Toolbar - WPBakery Style */
.chart-toolbar {
    position: absolute;
    top: -35px;
    right: 0;
    display: none;
    align-items: center;
    gap: 4px;
    background: var(--jgw-success);
    padding: 6px 10px;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 -4px 12px rgba(157, 190, 59, 0.3);
    z-index: 100;
}

.dashboard-customize-mode .dashboard-chart .chart-toolbar {
    display: none;
}

.dashboard-customize-mode .dashboard-chart:hover .chart-toolbar,
.dashboard-customize-mode .dashboard-chart.chart-selected .chart-toolbar {
    display: flex;
    animation: slideDown 0.2s ease-out;
}

.chart-toolbar-label {
    color: var(--jgw-white);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-right: 8px;
    margin-right: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chart-toolbar-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--jgw-white);
    width: 26px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 12px;
}

.chart-toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.chart-toolbar-btn.drag-handle {
    cursor: move;
}

.chart-toolbar-btn.drag-handle:hover {
    background: rgba(255, 255, 255, 0.4);
}

.chart-toolbar-btn.edit-btn:hover {
    background: var(--jgw-accent);
}

.chart-toolbar-btn.duplicate-btn:hover {
    background: var(--jgw-primary-light);
}

.chart-toolbar-btn.remove-btn:hover {
    background: rgba(220, 53, 69, 0.8);
}

/* Column Controls - Between Charts */
.column-drop-zone {
    min-height: 60px;
    border: 2px dashed var(--jgw-gray-border);
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jgw-gray-light);
    transition: all 0.3s ease;
    position: relative;
}

.dashboard-customize-mode .column-drop-zone {
    display: flex;
}

.column-drop-zone:hover {
    border-color: var(--jgw-accent);
    background: rgba(55, 193, 227, 0.05);
}

.column-drop-zone::before {
    content: '+ Add Chart';
    color: var(--jgw-gray);
    font-size: 14px;
    font-weight: 500;
}

.column-drop-zone.drag-over {
    border-color: var(--jgw-accent);
    background: rgba(55, 193, 227, 0.1);
    box-shadow: inset 0 0 20px rgba(55, 193, 227, 0.2);
}

/* Legacy Control Buttons - Keep for compatibility but hidden */
.row-controls,
.chart-controls {
    display: none !important;
}

/* Drag and Drop Styles - Enhanced */
.sortable-ghost {
    opacity: 0.5;
    background: linear-gradient(to bottom, rgba(55, 193, 227, 0.1), rgba(55, 193, 227, 0.2)) !important;
    border: 2px dashed var(--jgw-accent) !important;
    transform: scale(0.95);
}

.sortable-chosen {
    border-color: var(--jgw-accent) !important;
    border-style: solid !important;
    box-shadow: 0 8px 30px rgba(55, 193, 227, 0.4) !important;
    transform: scale(1.02);
    z-index: 999;
}

.sortable-drag {
    opacity: 0.9;
    transform: rotate(1deg) scale(1.05);
    box-shadow: 0 10px 40px var(--jgw-shadow-hover);
}

/* Chart Library Modal - Enhanced */
#chart-library-modal .modal-header {
    background: linear-gradient(135deg, var(--jgw-primary) 0%, var(--jgw-primary-light) 100%);
    color: var(--jgw-white);
    border-bottom: 2px solid var(--jgw-accent);
}

#chart-library-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

#chart-library-modal .charts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-height: 600px;
    overflow-y: auto;
    padding: 20px;
}

.chart-library-item {
    padding: 20px;
    border: 2px solid var(--jgw-gray-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--jgw-white);
    position: relative;
    overflow: hidden;
}

.chart-library-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--jgw-primary), var(--jgw-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.chart-library-item:hover {
    border-color: var(--jgw-accent);
    background: linear-gradient(to bottom, rgba(55, 193, 227, 0.05), rgba(55, 193, 227, 0.1));
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--jgw-shadow);
}

.chart-library-item:hover::before {
    transform: scaleX(1);
}

.chart-library-item i {
    font-size: 36px;
    color: var(--jgw-primary);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.chart-library-item:hover i {
    color: var(--jgw-accent);
    transform: scale(1.1);
}

.chart-library-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--jgw-primary);
    font-size: 15px;
    font-weight: 600;
}

.chart-library-item:hover strong {
    color: var(--jgw-accent);
}

.chart-library-item small {
    color: var(--jgw-gray);
    font-size: 12px;
    line-height: 1.4;
}

/* Chart Settings Modal - Enhanced */
#chart-settings-modal .modal-header {
    background: linear-gradient(135deg, var(--jgw-primary) 0%, var(--jgw-primary-light) 100%);
    color: var(--jgw-white);
    border-bottom: 2px solid var(--jgw-accent);
}

#chart-settings-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

#chart-settings-modal .modal-body {
    padding: 30px;
}

#chart-settings-modal .form-group {
    margin-bottom: 25px;
}

#chart-settings-modal label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: var(--jgw-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

#chart-settings-modal select,
#chart-settings-modal input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--jgw-gray-border);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--jgw-white);
}

#chart-settings-modal select:focus,
#chart-settings-modal input:focus {
    outline: none;
    border-color: var(--jgw-accent);
    box-shadow: 0 0 0 3px rgba(55, 193, 227, 0.1);
}

#chart-settings-modal .modal-footer {
    border-top: 1px solid var(--jgw-gray-border);
    padding: 20px 30px;
}

#chart-settings-modal .modal-footer .btn-primary {
    background: var(--jgw-accent);
    border-color: var(--jgw-accent);
    color: var(--jgw-white);
    font-weight: 600;
    padding: 10px 24px;
}

#chart-settings-modal .modal-footer .btn-primary:hover {
    background: var(--jgw-accent-light);
    border-color: var(--jgw-accent-light);
}

/* Add Row Indicator - Enhanced */
.dashboard-customize-mode .add-row-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    margin: 30px 0;
    border: 2px dashed var(--jgw-gray-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, rgba(25, 53, 96, 0.02), rgba(25, 53, 96, 0.05));
    position: relative;
}

.dashboard-customize-mode .add-row-indicator:hover {
    border-color: var(--jgw-accent);
    background: linear-gradient(to bottom, rgba(55, 193, 227, 0.05), rgba(55, 193, 227, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--jgw-shadow);
}

.dashboard-customize-mode .add-row-indicator::before {
    content: '+ Add New Row';
    font-size: 16px;
    color: var(--jgw-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dashboard-customize-mode .add-row-indicator:hover::before {
    color: var(--jgw-accent);
}

.dashboard-customize-mode .add-row-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid var(--jgw-accent);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.dashboard-customize-mode .add-row-indicator:hover::after {
    width: 60px;
    height: 60px;
    opacity: 0.3;
}

/* Preview Mode */
.dashboard-preview-mode .row-toolbar,
.dashboard-preview-mode .chart-toolbar,
.dashboard-preview-mode #dashboard-toolbar {
    display: none !important;
}

.dashboard-preview-mode .dashboard-row,
.dashboard-preview-mode .dashboard-chart {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Notifications - Enhanced */
.dashboard-notification {
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 30px var(--jgw-shadow-hover);
    border-left: 4px solid;
}

.dashboard-notification.notification-success {
    border-left-color: var(--jgw-success);
    background: linear-gradient(135deg, var(--jgw-success) 0%, var(--jgw-success-light) 100%);
}

.dashboard-notification.notification-error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #dc3545 0%, #e85d6a 100%);
}

.dashboard-notification.notification-info {
    border-left-color: var(--jgw-accent);
    background: linear-gradient(135deg, var(--jgw-accent) 0%, var(--jgw-accent-light) 100%);
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Customize Dashboard Button - Enhanced */
#customize-dashboard-btn {
    margin-left: 10px;
    background: var(--jgw-primary);
    border-color: var(--jgw-primary);
    color: var(--jgw-white);
    font-weight: 500;
    transition: all 0.3s ease;
}

#customize-dashboard-btn:hover {
    background: var(--jgw-primary-light);
    border-color: var(--jgw-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--jgw-shadow);
}

#customize-dashboard-btn i {
    margin-right: 6px;
}

/* Ensure charts are properly contained */
.dashboard-customize-mode .card {
    position: relative;
    overflow: visible;
}

.dashboard-customize-mode .card-body {
    position: relative;
}

/* Loading State - Enhanced */
.dashboard-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.dashboard-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 4px solid rgba(25, 53, 96, 0.1);
    border-top: 4px solid var(--jgw-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Row Number Badge */
.row-number-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--jgw-primary);
    color: var(--jgw-white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
}

.dashboard-customize-mode .dashboard-row .row-number-badge {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    #dashboard-toolbar {
        flex-direction: column;
        padding: 10px 15px;
        gap: 10px;
    }
    
    #dashboard-toolbar .toolbar-brand {
        font-size: 14px;
    }
    
    #dashboard-toolbar .toolbar-left,
    #dashboard-toolbar .toolbar-right {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .toolbar-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .toolbar-btn span {
        display: none;
    }
    
    .chart-toolbar {
        top: -30px;
        flex-wrap: wrap;
    }
    
    .chart-toolbar-label {
        display: none;
    }
    
    .chart-toolbar-btn {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .row-toolbar {
        top: -35px;
        flex-wrap: wrap;
        padding: 6px 8px;
    }
    
    .row-toolbar-label {
        display: none;
    }
    
    .row-toolbar-btn {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}

/* Smooth Transitions */
* {
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus States */
.dashboard-customize-mode .dashboard-row:focus-within,
.dashboard-customize-mode .dashboard-chart:focus-within {
    outline: 2px solid var(--jgw-accent);
    outline-offset: 2px;
}

/* Empty State */
.empty-row-placeholder {
    padding: 40px;
    text-align: center;
    color: var(--jgw-gray);
    border: 2px dashed var(--jgw-gray-border);
    border-radius: 8px;
    background: var(--jgw-gray-light);
}

.empty-row-placeholder::before {
    content: '📊';
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.empty-row-placeholder-text {
    font-size: 14px;
    font-weight: 500;
}

.inline-question-echarts-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;  
}
.messaging-question-echarts-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;  
}
/* What matters to workers - chapters opened tree chart */
.chapters-opened-tree-chart-box {
    min-height: 400px;
}

#chapters-opened-tree-chart-id {
    width: 100%;
    height: 500px;
}

/* User Insights page (Figma-aligned, typography matched to User Overview) */
.user-insights-page {
    --ui-card: #ffffff;
    --ui-navy: #193560;
    --ui-text: #495057;
    --ui-muted: #6c757d;
    --ui-border: #dee2e6;
    --ui-active-panel: #e8eef6;
    --ui-header-bar: #dfe8f2;
    --ui-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --ui-legend-red: #9e1b32;
    --ui-legend-green: #99b945;
    --ui-legend-grey: #d1d5db;
    --ui-font-page-title: 25px;
    --ui-font-section-title: 18px;
    --ui-font-body: 14px;
    --ui-font-body-sm: 13px;
    --ui-font-caption: 12px;
    margin: -1.5rem -1.5rem 0;
    padding: 1.5rem 1.5rem 2.5rem;
    min-height: calc(100vh - 120px);
    font-size: var(--ui-font-body);
    line-height: 1.5;
    color: var(--ui-text);
    -webkit-font-smoothing: antialiased;
}

.user-insights-page h1,
.user-insights-page h2,
.user-insights-page h3,
.user-insights-page h4,
.user-insights-page button,
.user-insights-page input,
.user-insights-page select,
.user-insights-page label {
    font-family: inherit;
}

.user-insights-page .user-insights-title {
    font-size: var(--ui-font-page-title);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

.user-insights-latest-label,
.user-insights-breakdown-label {
    font-size: var(--ui-font-caption);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ui-muted);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.user-insights-latest-reports-card {
    background: var(--ui-card);
    border: 1px solid #dde2e8;
    border-radius: 12px;
    padding: 1.25rem 1rem 1.35rem;
    box-shadow: var(--ui-shadow);
}

.user-insights-latest-reports-card .user-insights-latest-label {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--ui-navy);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 4px solid #4ebce5;
}

.user-insights-reports-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-insights-report-accordion-item {
    position: relative;
}

.user-insights-report-collapsed {
    display: block;
    width: 100%;
    border: 1px solid #dde2e8;
    border-radius: 10px;
    background: #fff;
    padding: 1rem 0.75rem;
    text-align: center;
    color: var(--ui-navy);
    font-weight: 500;
    font-size: var(--ui-font-body);
    line-height: 1.35;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.user-insights-report-collapsed:hover {
    background: #f8fafc;
    border-color: #cfd8e3;
}

.user-insights-report-collapsed-inner {
    display: block;
    max-width: 100%;
}

.user-insights-report-accordion-item.is-expanded .user-insights-report-collapsed {
    display: none;
}

.user-insights-report-accordion-item:not(.is-expanded) .user-insights-report-expanded {
    display: none;
}

.user-insights-report-expanded {
    overflow: hidden;
}

.user-insights-report-active-panel {
    border-radius: 10px;
    border: 1px solid #dfe6ef;
    background: var(--ui-active-panel);
    padding: 1rem 0.85rem 1.15rem;
    text-align: center;
}

.user-insights-report-active-title {
    font-weight: 600;
    color: var(--ui-navy);
    font-size: var(--ui-font-section-title);
    margin-bottom: 0.65rem;
    line-height: 1.25;
}

.user-insights-report-active-panel .report-desc,
.user-insights-report-active-panel .report-hint {
    font-size: var(--ui-font-body-sm);
    color: var(--ui-muted);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.user-insights-report-active-panel .report-hint {
    margin-bottom: 0.65rem;
}

.user-insights-report-active-panel .report-pdf {
    display: inline-block;
    margin-top: 0.2rem;
    font-size: var(--ui-font-body);
    font-weight: 600;
}

.user-insights-latest-reports-card .user-insights-help-link {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.user-insights-help-link {
    font-size: var(--ui-font-body-sm);
    font-weight: 500;
    margin-top: 1rem;
    display: inline-block;
}

.user-insights-main-card,
.user-insights-breakdown-card {
    background: var(--ui-card);
    border-radius: 12px;
    box-shadow: var(--ui-shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.25rem 1.5rem 1.5rem;
    margin-bottom: 1.25rem;
}

.user-insights-chart-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    margin-bottom: 0.65rem;
}

.user-insights-chart-head-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--ui-font-section-title);
    font-weight: 600;
    color: var(--ui-navy);
    margin: 0;
    line-height: 1.25;
}

.user-insights-chart-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.user-insights-chart-controls-label {
    font-size: var(--ui-font-body);
    font-weight: 400;
    color: var(--ui-muted);
    line-height: 1.35;
    white-space: nowrap;
}

.user-insights-chart-controls-select.form-select {
    width: auto;
    min-width: 11.5rem;
    min-height: 2.5rem;
    padding: 0.5rem 2.35rem 0.5rem 1rem;
    font-size: var(--ui-font-body);
    font-weight: 600;
    color: var(--ui-navy);
    line-height: 1.2;
    border-radius: 999px;
    border: 1px solid #d8dee6;
    background-color: #fff;
    box-shadow: none;
}

.user-insights-chart-controls-select.form-select:focus {
    border-color: #b8c4d4;
    box-shadow: 0 0 0 0.15rem rgba(74, 144, 226, 0.15);
}

.user-insights-indicator-filter-wrap {
    display: inline-block;
    min-width: 11.5rem;
}

.user-insights-indicator-filter-wrap .multiselect-native-select {
    display: block;
    width: 100%;
}

.user-insights-chart-controls .user-insights-indicator-filter-btn {
    min-height: 2.5rem;
    padding: 0.5rem 2.35rem 0.5rem 1rem;
    font-size: var(--ui-font-body);
    font-weight: 600;
    color: var(--ui-navy);
    line-height: 1.2;
    border-radius: 999px;
    border: 1px solid #d8dee6;
    background-color: #fff;
    box-shadow: none;
    text-align: left;
}

.user-insights-chart-controls .user-insights-indicator-filter-btn:hover,
.user-insights-chart-controls .user-insights-indicator-filter-btn:focus,
.user-insights-chart-controls .show > .user-insights-indicator-filter-btn {
    color: var(--ui-navy);
    background-color: #fff;
    border-color: #b8c4d4;
    box-shadow: 0 0 0 0.15rem rgba(74, 144, 226, 0.15);
}

.user-insights-donut-slot-wrap.indicator-filter-hidden,
.user-insights-indicator-block.indicator-filter-hidden {
    display: none !important;
}

@media (max-width: 575.98px) {
    .user-insights-chart-head {
        flex-direction: column;
        align-items: stretch;
    }

    .user-insights-chart-controls {
        width: 100%;
        justify-content: flex-start;
    }

    .user-insights-chart-controls-select.form-select {
        flex: 1 1 auto;
        min-width: 0;
    }
}

.user-insights-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

button.user-insights-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.9rem;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    min-height: 0;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

button.user-insights-legend-item:hover {
    background: #f8fafc;
    border-color: #152d4a;
}

button.user-insights-legend-item:focus {
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(26, 59, 93, 0.2);
}

button.user-insights-legend-item:focus-visible {
    border: 1px solid rgba(0, 0, 0, 0.06);
    outline-offset: 2px;
}

.user-insights-legend-item span.user-insights-legend-text {
    font-size: var(--ui-font-body);
    font-weight: 500;
    color: var(--ui-navy);
    letter-spacing: 0;
    line-height: 1.35;
}

.user-insights-legend-swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    vertical-align: middle;
    border: none;
    box-shadow: none;
}

.user-insights-legend-swatch--needs-action {
    background-color: #9e1b32;
}

.user-insights-legend-swatch--on-track {
    background-color: #99b945;
}

.user-insights-legend-swatch--no-response {
    background-color: #d1d5db;
}

.user-insights-donut-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.user-insights-donut-row .user-insights-donut-slot-wrap:not(.d-none):not(.indicator-filter-hidden) {
    flex: 0 1 calc(33.333% - 0.75rem);
    min-width: 200px;
    max-width: 360px;
}

@media (max-width: 991.98px) {
    .user-insights-donut-row .user-insights-donut-slot-wrap:not(.d-none):not(.indicator-filter-hidden) {
        flex: 0 1 calc(50% - 0.5rem);
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .user-insights-donut-row .user-insights-donut-slot-wrap:not(.d-none) {
        flex: 1 1 100%;
        max-width: none;
    }
}

.user-insights-donut-slot-wrap {
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.user-insights-donut-cell {
    border: 1px solid #e5e9ef;
    border-radius: 10px;
    background: #fff;
    padding: 0.75rem;
    height: 100%;
    min-height: 300px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.user-insights-donut-row.has-donut-selection .user-insights-donut-slot-wrap.is-dimmed {
    filter: blur(2px);
    opacity: 0.42;
    cursor: pointer;
}

.user-insights-donut-row.has-donut-selection .user-insights-donut-slot-wrap.is-dimmed:hover {
    filter: blur(1px);
    opacity: 0.72;
}

.user-insights-donut-slot-wrap.is-selected .user-insights-donut-cell {
    border-color: var(--ui-navy);
    box-shadow: 0 0 0 2px rgba(25, 53, 96, 0.12);
}

.user-insights-donut-cell:focus-visible {
    outline: 2px solid var(--ui-navy);
    outline-offset: 2px;
}

.user-insights-donut-cell .echarts-host {
    width: 100%;
    height: 280px;
    min-height: 280px;
}

.user-insights-breakdown-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-insights-search-wrap {
    position: relative;
    min-width: 220px;
}

.user-insights-search-wrap .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ui-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.user-insights-search-wrap input {
    border-radius: 999px;
    border: 1px solid var(--ui-border);
    padding: 0.45rem 0.75rem 0.45rem 2.25rem;
    width: 100%;
    font-size: var(--ui-font-body);
    color: var(--ui-text);
}

.user-insights-indicators-header {
    background: var(--ui-header-bar);
    border-radius: 8px 8px 0 0;
    padding: 0.5rem 1rem;
    font-size: var(--ui-font-body);
    font-weight: 600;
    color: var(--ui-navy);
    border: 1px solid var(--ui-border);
    border-bottom: none;
}

.user-insights-indicator-list {
    border: 1px solid var(--ui-border);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    background: #fff;
}

.user-insights-indicator-block {
    border-bottom: 1px solid #eee;
}

.user-insights-indicator-block:last-child {
    border-bottom: none;
}

.user-insights-indicator-row {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 0;
    background: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    gap: 0.75rem;
}

.user-insights-indicator-row:hover {
    background: #fafbfc;
}

.user-insights-indicator-block.is-donut-selected .user-insights-indicator-row {
    background: #e8eef6;
}

.user-insights-indicator-block.is-donut-selected .user-insights-indicator-row .indicator-name {
    color: var(--ui-navy);
    font-weight: 600;
}

.user-insights-indicator-row .accent-bar {
    width: 5px;
    align-self: stretch;
    min-height: 2.25rem;
    border-radius: 0 3px 3px 0;
    flex-shrink: 0;
}

.user-insights-indicator-row .indicator-name {
    flex: 1;
    font-size: var(--ui-font-body);
    font-weight: 500;
    color: var(--ui-text);
}

.user-insights-indicator-row .expand-icon {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--ui-muted);
    width: 1.5rem;
    text-align: center;
    line-height: 1;
}

.user-insights-indicator-row[aria-expanded="true"] .expand-icon {
    content: "−";
}

.user-insights-indicator-detail {
    padding: 0;
    background: #f4f7f9;
    border-top: 1px solid #e8ecf1;
}

.user-insights-indicator-panel {
    border-left: 5px solid var(--indicator-accent, #9b59b6);
    background: #fff;
    margin: 0.75rem 1rem 1rem 1.65rem;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 1px 2px rgba(26, 59, 93, 0.06);
}

.user-insights-indicator-panel-body {
    overflow: visible;
}

.user-insights-indicator-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.65rem 1rem;
    background: #e8eef6;
    border-bottom: 1px solid #dce4ee;
}

.user-insights-indicator-panel-titles {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.user-insights-indicator-panel-label {
    font-size: var(--ui-font-body-sm);
    font-weight: 400;
    color: var(--ui-muted);
}

.user-insights-indicator-panel-name {
    font-size: var(--ui-font-body);
    font-weight: 600;
    color: var(--indicator-accent, #9e1b32);
}

.user-insights-user-responses-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--indicator-accent, #9e1b32);
    color: #fff;
    font-size: var(--ui-font-caption);
    font-weight: 700;
    white-space: nowrap;
}

.user-insights-indicator-panel-body {
    padding: 1rem;
}

.user-insights-drilldown-row {
    align-items: flex-start;
}

.user-insights-question-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.user-insights-lead-card {
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    overflow: hidden;
}

.user-insights-lead-card.is-active {
    border-color: var(--indicator-accent, var(--ui-navy));
    box-shadow: 0 0 0 1px var(--indicator-accent, var(--ui-navy));
}

.user-insights-lead-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: #f3f5f8;
    text-align: left;
    cursor: pointer;
}

.user-insights-lead-card.is-expanded .user-insights-lead-header {
    background: #eef1f6;
}

.user-insights-lead-code {
    font-size: var(--ui-font-body-sm);
    font-weight: 700;
    color: var(--ui-navy);
    flex-shrink: 0;
}

.user-insights-lead-text {
    flex: 1;
    font-size: var(--ui-font-body);
    font-weight: 600;
    color: var(--ui-text);
    line-height: 1.4;
}

.user-insights-lead-chevron {
    color: var(--ui-muted);
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.user-insights-lead-header[aria-expanded="true"] .user-insights-lead-chevron {
    transform: rotate(180deg);
}

.user-insights-lead-body {
    padding: 0.75rem 1rem 1rem;
    background: #fafbfc;
}

.user-insights-answer-bars {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.user-insights-answer-bar {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    background: #e8eef6;
    color: var(--ui-navy);
    font-size: var(--ui-font-body-sm);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.user-insights-answer-bar--yes.is-selected {
    background: #9e1b32;
    border-color: #9e1b32;
    color: #fff;
}

.user-insights-answer-bar--no.is-selected {
    background: #5a6a7d;
    border-color: #5a6a7d;
    color: #fff;
}

.user-insights-answer-count {
    font-weight: 700;
    white-space: nowrap;
}

.user-insights-lead-follow-up-root {
    position: relative;
    padding-left: 1.25rem;
    margin-top: 0.25rem;
}

.user-insights-branch-connector {
    position: absolute;
    left: 0;
    top: 0;
    width: 14px;
    height: 22px;
    border-left: 2px solid #c5cdd8;
    border-bottom: 2px solid #c5cdd8;
    border-bottom-left-radius: 4px;
}

.user-insights-branch-connector--lead {
    top: 0.35rem;
}

.user-insights-follow-up-block {
    margin-bottom: 0.5rem;
}

.user-insights-follow-up-question {
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    font-size: var(--ui-font-body-sm);
    line-height: 1.4;
}

.user-insights-follow-up-code {
    font-weight: 700;
    color: var(--ui-navy);
    flex-shrink: 0;
}

.user-insights-follow-up-text {
    color: var(--ui-text);
    font-weight: 600;
}

.user-insights-option-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.user-insights-follow-up-branch {
    position: relative;
    padding-left: 1.25rem;
    margin-top: 0.35rem;
}

.user-insights-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e0e5eb;
    border-radius: 6px;
    background: #fff;
    font-size: var(--ui-font-body-sm);
    color: var(--ui-text);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.user-insights-option-row:hover {
    background: #f8f9fb;
}

.user-insights-option-row.is-selected {
    background: #9e1b32;
    border-color: #9e1b32;
    color: #fff;
}

.user-insights-option-count {
    font-weight: 700;
    white-space: nowrap;
}

.user-insights-follow-up-block[data-depth="2"] .user-insights-follow-up-block {
    background: #eef2f7;
    border: 1px solid #dce4ee;
    border-radius: 8px;
    padding: 0.65rem;
}

.user-insights-drilldown-side {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-insights-drilldown-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
}

.user-insights-drilldown-empty {
    margin: 0;
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: var(--ui-font-body-sm);
    color: var(--ui-muted);
    background: #fff;
    border: 1px dashed #dce4ee;
    border-radius: 8px;
    line-height: 1.45;
}

.user-insights-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--ui-font-body-sm);
    font-weight: 400;
    color: var(--ui-muted);
    padding: 0.25rem 0;
}

.user-insights-breadcrumb-item:last-child {
    font-weight: 600;
    color: var(--ui-navy);
}

.user-insights-breadcrumb-sep,
.user-insights-breadcrumb-trail {
    color: var(--ui-muted);
    font-weight: 400;
}

.user-insights-side-view--chart {
    overflow: visible;
    min-width: 0;
}

.user-insights-sunburst-host {
    width: 100%;
    height: 340px;
    min-height: 300px;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
    background: transparent;
    border: none;
    border-radius: 0;
}

.user-insights-sunburst-host canvas {
    display: block;
}

.user-insights-sunburst-echarts-tooltip {
    max-width: 300px !important;
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.user-insights-sunburst-tooltip {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 276px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.user-insights-sunburst-tip-layer {
    padding: 0.15rem 0;
    min-width: 0;
}

.user-insights-sunburst-tip-question {
    font-size: 12px;
    font-weight: 400;
    color: #6c757d;
    line-height: 1.45;
    margin-bottom: 0.35rem;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.user-insights-sunburst-tip-response {
    font-size: 13px;
    font-weight: 500;
    color: #193560;
    line-height: 1.35;
}

.user-insights-sunburst-tip-response strong {
    font-weight: 700;
}

.user-insights-sunburst-tip-count {
    font-weight: 600;
    color: #6c757d;
}

.user-insights-sunburst-tip-divider {
    height: 1px;
    margin: 0.45rem 0;
    background: #e5e9ef;
}

.user-insights-side-view--text {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.user-insights-text-responses-panel {
    display: none;
    flex: 1;
    min-height: 0;
    flex-direction: column;
}

.user-insights-text-responses-panel.is-active {
    display: flex;
}

.user-insights-text-responses-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-height: 0;
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    padding: 1rem;
}

.user-insights-starred-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.user-insights-starred-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ui-navy);
    color: #fff;
    font-size: 1.1rem;
}

.user-insights-starred-title {
    font-size: var(--ui-font-body);
    font-weight: 600;
    color: var(--ui-navy);
}

.user-insights-starred-count {
    font-size: var(--ui-font-body-sm);
    font-weight: 400;
    color: var(--ui-muted);
}

.user-insights-explore-all-btn {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 2px solid var(--ui-navy);
    border-radius: 999px;
    background: #fff;
    color: var(--ui-navy);
    font-size: var(--ui-font-body);
    font-weight: 600;
    cursor: pointer;
}

.user-insights-explore-all-btn:hover {
    background: #f8f9fa;
}

.user-insights-text-response-list {
    flex: 1;
    min-height: 0;
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 0.35rem;
}

.user-insights-text-response-list::-webkit-scrollbar {
    width: 6px;
}

.user-insights-text-response-list::-webkit-scrollbar-thumb {
    background: #9ec5f7;
    border-radius: 999px;
}

.user-insights-text-response-card {
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    background: #fafbfc;
}

.user-insights-text-response-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.user-insights-text-response-id {
    font-size: var(--ui-font-body);
    font-weight: 700;
    color: var(--ui-navy);
}

.user-insights-text-response-star {
    color: var(--ui-navy);
    font-size: 1.15rem;
    line-height: 1;
}

.user-insights-text-response-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.user-insights-text-response-field:last-child {
    margin-bottom: 0;
}

.user-insights-text-response-field-label {
    font-size: var(--ui-font-body-sm);
    font-weight: 400;
    color: var(--ui-muted);
}

.user-insights-text-response-box {
    padding: 0.65rem 0.75rem;
    border: 1px solid #dce4ee;
    border-radius: 6px;
    background: #fff;
    font-size: var(--ui-font-body-sm);
    line-height: 1.5;
    color: var(--ui-text);
    white-space: pre-wrap;
    word-break: break-word;
}

.user-insights-open-text-hint {
    margin: 0;
    padding: 0.5rem 1rem 0.85rem;
    font-size: var(--ui-font-body-sm);
    color: var(--ui-muted);
}

.user-insights-date-filter-card {
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    padding: 0.5rem 0.65rem 0.65rem;
}

.user-insights-date-filter {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: 0.45rem 0.5rem;
    width: 100%;
    min-width: 0;
}

.user-insights-date-filter-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.45rem;
    min-width: 0;
}

.user-insights-date-filter-calendar-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 0.1rem;
    padding: 0;
    border: 1px solid var(--ui-navy, #1a2b4b);
    border-radius: 999px;
    background: #fff;
    color: var(--ui-navy, #1a2b4b);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.user-insights-date-filter-calendar-btn:hover {
    background: #f5f8fc;
}

.user-insights-date-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    margin: 0;
    min-width: 0;
}

.user-insights-date-label {
    font-size: var(--ui-font-body-sm);
    font-weight: 500;
    color: var(--ui-muted);
    line-height: 1.2;
}

.user-insights-date-input {
    width: 100%;
    min-width: 0;
    padding: 0.3rem 0.4rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: var(--ui-font-body-sm);
    font-weight: 500;
    color: var(--ui-navy);
    background: #fff;
}

.user-insights-date-input:focus {
    outline: none;
    border-color: var(--ui-navy);
    box-shadow: 0 0 0 3px rgba(25, 53, 96, 0.12);
}

.user-insights-date-filter .flatpickr-calendar {
    z-index: 1060;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 35, 62, 0.15);
}

.user-insights-date-filter .flatpickr-day.selected,
.user-insights-date-filter .flatpickr-day.startRange,
.user-insights-date-filter .flatpickr-day.endRange {
    background: var(--ui-navy, #1a2b4b);
    border-color: var(--ui-navy, #1a2b4b);
}

.user-insights-indicator-block.filtered-out {
    display: none;
}

/* User Insights – all responses modal (typography matched to User Overview) */
.user-insights-all-responses-modal {
    --ui-navy: #193560;
    --ui-text: #495057;
    --ui-muted: #6c757d;
    --ui-font-section-title: 18px;
    --ui-font-body: 14px;
    --ui-font-body-sm: 13px;
    font-size: var(--ui-font-body);
    line-height: 1.5;
    color: var(--ui-text);
    -webkit-font-smoothing: antialiased;
}

.user-insights-all-responses-modal h2,
.user-insights-all-responses-modal input,
.user-insights-all-responses-modal button,
.user-insights-all-responses-modal table {
    font-family: inherit;
}

.user-insights-all-responses-modal .modal-backdrop.show {
    opacity: 0.35;
}

.user-insights-all-responses-dialog {
    max-width: min(1120px, calc(100vw - 2rem));
    width: 100%;
}

.user-insights-all-responses-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(15, 35, 62, 0.18);
    overflow: hidden;
}

.user-insights-all-responses-body {
    padding: 1.5rem 1.75rem 1.25rem;
}

.user-insights-all-responses-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-insights-all-responses-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.user-insights-all-responses-title {
    margin: 0;
    font-size: var(--ui-font-section-title);
    font-weight: 600;
    color: var(--ui-navy);
    line-height: 1.25;
}

.user-insights-all-responses-subtitle {
    font-size: var(--ui-font-body);
    font-weight: 400;
    color: var(--ui-muted);
}

.user-insights-all-responses-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-size: var(--ui-font-body-sm);
    font-weight: 400;
    color: var(--ui-muted);
}

.user-insights-all-responses-breadcrumb-item:last-child {
    font-weight: 600;
    color: var(--ui-navy);
}

.user-insights-all-responses-breadcrumb-sep {
    color: var(--ui-muted);
    font-weight: 400;
}

.user-insights-all-responses-search-wrap {
    position: relative;
    flex-shrink: 0;
    min-width: 220px;
}

.user-insights-all-responses-search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ui-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.user-insights-all-responses-search {
    width: 100%;
    min-width: 220px;
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    border: 1px solid #dce4ee;
    border-radius: 999px;
    font-size: var(--ui-font-body);
    color: var(--ui-text);
    background: #fff;
}

.user-insights-all-responses-search:focus {
    outline: none;
    border-color: var(--ui-navy);
    box-shadow: 0 0 0 3px rgba(25, 53, 96, 0.12);
}

.user-insights-all-responses-table-wrap {
    max-height: 420px;
    overflow: auto;
    border: 1px solid #e5e9ef;
    border-radius: 10px;
}

.user-insights-all-responses-table-wrap::-webkit-scrollbar {
    width: 8px;
}

.user-insights-all-responses-table-wrap::-webkit-scrollbar-thumb {
    background: #9ec5f7;
    border-radius: 999px;
}

.user-insights-all-responses-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--ui-font-body-sm);
}

.user-insights-all-responses-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #e8eef6;
    color: var(--ui-navy);
    font-size: var(--ui-font-body);
    font-weight: 600;
    text-align: left;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid #dce4ee;
    white-space: nowrap;
}

.user-insights-all-responses-th-date span:first-child {
    margin-right: 0.15rem;
}

.user-insights-all-responses-sort-icon {
    color: var(--ui-navy);
    font-size: 1rem;
    line-height: 1;
}

.user-insights-all-responses-table tbody td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #edf1f5;
    vertical-align: top;
    color: var(--ui-text);
    line-height: 1.5;
}

.user-insights-all-responses-table tbody tr:last-child td {
    border-bottom: none;
}

.user-insights-all-responses-id {
    font-weight: 700;
    color: var(--ui-navy);
    white-space: nowrap;
}

.user-insights-all-responses-translation .user-insights-search-hit {
    font-weight: 700;
    color: #0d9488;
    background: transparent;
    text-decoration: underline;
    text-decoration-color: rgba(13, 148, 136, 0.45);
    padding: 0;
}

.user-insights-all-responses-na {
    color: var(--ui-muted);
    font-style: italic;
}

.user-insights-all-responses-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.user-insights-all-responses-close-btn {
    border: none;
    border-radius: 999px;
    background: #c5d4e8;
    color: #fff;
    font-size: var(--ui-font-body);
    font-weight: 600;
    padding: 0.55rem 1.35rem;
    cursor: pointer;
}

.user-insights-all-responses-close-btn:hover {
    background: #b0c4de;
}
